//
//  UILabel+NLCustomLab.h
//  soosoa
//
//  Created by yj_zhang on 2017/8/16.
//  Copyright © 2017年 liq. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (NLCustomLab)
//
@property(nonatomic,assign)BOOL selected;

@property(nonatomic,assign)BOOL isCopyAble;

//设置可以复制
- (void)setCopyAvaiable;


//设置间距
- (void)setLineSpace:(CGFloat)lineSpace;

-(instancetype)initWithText:(NSString *)text andTextColor:(UIColor *)textColor andTextAlignment:(NSTextAlignment)textAlignment andFont:(UIFont *)font;

-(instancetype)initWithAttributedTitle:(NSString *)attributedText andTextColor:(UIColor *)textColor andTextAlignment:(NSTextAlignment)textAlignment andFont:(UIFont *)font andLineSpacing:(CGFloat)lineSpacing andRange:(NSRange)range andRangeTextColor:(UIColor *)rangeTextColor andRangeFont:(UIFont *)rangeFont;


/*
 *计算文字尺寸
 @param text  需要计算尺寸的文字
 @param font  文字的字体
 @param maxSize  文字的最大尺寸
 */
+ (CGSize)getSizeWithText:(NSString *)text font:(UIFont *)font maxSize:(CGSize)maxSize;

@end
